#!/bin/sh

echo start package fs_oms ...

if [ -f fs_oms ]; then
    rm -rf fs_oms
fi

go build -o fs_oms main.go

if [ $? -ne 0 ]; then
    echo compile fs_oms error!
    exit 1
fi

if [ -f fs_oms.tar.gz ]; then
    rm -rf fs_oms.tar.gz
fi

echo tar zcf fs_oms.tar.gz fs_oms fs_oms.service conf static views fs_oms_install.sh
tar zcf fs_oms.tar.gz fs_oms fs_oms.service conf static views fs_oms_install.sh


echo fs_oms package complete

